logo头像
Snippet 博客主题

1.1 nodejs 安装

本文于642天之前发表,文中内容可能已经过时。

1 windows

下载地址
next next 安装

2 Mac

先安装一个 nvm(https://github.com/creationix/nvm)

1
curl -o- https://raw.githubusercontent.com/creationix/vm/v0.25.2/install.sh | bash

检查nvm

1
nvm

安装 Node.js

1
2
nvm install 0.12
nvm install node

安装完成后,查看一下

1
node -v

3 centos

Run as root on RHEL, CentOS or Fedora, for Node.js v4 LTS Argon:

1
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -

Alternatively for Node.js v6:

1
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

Alternatively for Node.js 0.10:

1
curl --silent --location https://rpm.nodesource.com/setup | bash -

Then install, as root:

1
yum -y install nodejs

就这样,不能再简单。

支付宝打赏 微信打赏

打赏